$destinationFolder = ".\NahidaProject-InstallDirectory"

$files = Get-ChildItem -Path "." -Recurse -File

mkdir $destinationFolder\bin
mkdir $destinationFolder\include
mkdir $destinationFolder\lib

foreach ($file in $files) {
    if ($file.Extension -eq ".h") {
        Copy-Item -Path $file.FullName -Destination $destinationFolder\include
    }

	if ($file.Extension -eq ".lib") {
        Copy-Item -Path $file.FullName -Destination $destinationFolder\lib
    }

	if ($file.Extension -eq ".dll") {
        Copy-Item -Path $file.FullName -Destination $destinationFolder\bin
    }

	if ($file.Extension -eq ".exe") {
        Copy-Item -Path $file.FullName -Destination $destinationFolder\bin
    }
}
